/**
 * Created by maxiaoqiang on 2018/6/25.
 */

import {SCREEN_SUCCESS, SCREEN_ERROR} from 'action/const'


const screenChange = (state = {
    screen: "lg"
}, action)=> {
    switch (action.type) {

        case SCREEN_SUCCESS:
            return {...state, screen: action.screen}
        case SCREEN_ERROR:
            return {...state, screen: action.screen}
    }
    return state;
};

export default screenChange;